package com.moleq.models;

import java.nio.CharBuffer;
import java.util.jar.Attributes.Name;

public class ItemSettingPrintTag {
	private String upc;
	private String itemName;
	private String itemDesc;
	private String netWT;
	private String unitPrice;
	private String netWtUnit;
	private String price;
	private final static char[] ESC = {0x1B};
	private final static String ESC_BASE		= CharBuffer.wrap(ESC).toString();
	public ItemSettingPrintTag(){}
	public ItemSettingPrintTag(String upc,String itemName,String itemDesc,String netWT,String unitPrice,String netWtUnit,String price){
		this.upc = upc;
		this.itemName = itemName;
		this.itemDesc = itemDesc;
		this.netWT = netWT;
		this.unitPrice = unitPrice;
		this.netWtUnit = netWtUnit;
		this.price = price;
	}
	public String getUpc() {
		return upc;
	}
	public void setUpc(String upc) {
		this.upc = upc;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public String getItemDesc() {
		return itemDesc;
	}
	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}
	public String getNetWT() {
		return netWT;
	}
	public void setNetWT(String netWT) {
		this.netWT = netWT;
	}
	public String getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(String unitPrice) {
		this.unitPrice = unitPrice;
	}
	public String getNetWtUnit() {
		return netWtUnit;
	}
	public void setNetWtUnit(String netWtUnit) {
		this.netWtUnit = netWtUnit;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String CreateString(){
		String result = ESC_BASE + "ia3^TS" + upc + "~" + itemName + "~" + itemDesc + "~"
		+ netWT + "~" + unitPrice + "~" + netWtUnit + "~" + price + "~^FF";
		return result;
	}
	
}
